package com.qijian.maindata.domain;

import com.qijian.common.annotation.JoinField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 产品终检检验员对象 main_final_inspection_user
 *
 * @author qijian
 * @date 2022-04-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_final_inspection_user")
public class FinalInspectionUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "主表id")
    @JoinField
    private Long mainId;

    @Excel(name = "检验员id")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "检验员id")
    private Long userId;

    @Excel(name = "检验员")
    @ApiModelProperty(value = "检验员")
    private String userName;

    @Excel(name = "是否合格")
    @ApiModelProperty(value = "是否合格")
    private Boolean isQualified;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

}
